type WjIconProps = {
  name: string
  height?: string | number
  width?: string | number
}

const WjIcon = ({ name, width, height }: WjIconProps) => {
  return (
    <svg style={{ width, height }} aria-hidden='true'>
      <use href={`#icon-${name}`} />
    </svg>
  )
}
WjIcon.defaultProps = {
  width: '1.5em',
  height: '1.5em',
}
export default WjIcon
